package com.maslyk.invitation.ws;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import com.maslyk.invitation.entitybean.Order;
import com.maslyk.invitation.service.PersistenceService;

/**
 *
 * @author kris
 */
@WebService()
public class InvitationWebService
{

    /**
     * Web service operation
     */
    @WebMethod(operationName = "saveOrder")
    public Integer saveOrder(@WebParam(name = "parameter") Order parameter) throws Exception
    {
        return PersistenceService.getInstance().saveOrder(parameter).getId();
    }
}
